package geometric3D;

import java.awt.geom.Rectangle2D;

public abstract class Rectangle {
	protected Point position;
	protected int width;
	protected int height;
	protected boolean isPositiveFaced;
	
	public Rectangle (){
		
	}
	
	public Rectangle(int width, int height, boolean isPositiveFaced) {
		super();
		this.position = new Point(0, 0, 0);
		this.width = width;
		this.height = height;
		this.isPositiveFaced = isPositiveFaced;
	}
	public Point getPosition() {
		return position;
	}
	public void setPosition(Point position) {
		this.position = position;
	}
	
	
	
	public int getArea() {
		return this.width * this.height;
	}
	
	public boolean isPositiveFace() {
		return isPositiveFaced;
	}
	public void setPositiveFace(boolean isPositiveFaced) {
		this.isPositiveFaced = isPositiveFaced;
	}
	
	public abstract Rectangle2D toRectangle2D();
	
	
	
	

}
